Implementing term rewriting by jungle evaluation
نویسندگان
چکیده
Jungles are acyclic hypergraphs which represent sets of terms such that common subterms can be shared. Term rewrite rules are translated into jungle evaluation rules which implement parallel term rewriting steps. By using additional hypergraph rules which “fold” equal subterms, even non-left-linear term rewriting systems can be implemented. As a side effect, these folding rules can speed up the evaluation process considerably. It is shown that terminating term rewriting systems result in terminating jungle evaluation systems which are capable to normalize every term. Moreover, confluent and terminating term rewriting systems give rise to confluent and terminating jungle evaluation systems, provided that the “garbage” produced by the evaluation steps is ignored.
منابع مشابه
Term Rewriting with Sharing and Memoïzation
Jungle evaluation is an approach to deene term rewriting with sharing based on graph grammars. This approach preserves important properties of term rewriting like termination, and connuence for terminating systems (under mild restrictions). In this paper, term rewriting with sharing is further accelerated, by memo zation known from functional programming languages: The result of evaluating a fu...
متن کاملJungle Evaluation
Jungle evaluation is proposed as a new graph rewriting approach to the evaluation of functional expressions and, in particular, of algebraically specified operations. Jungles being intuitively forests of coalesced trees with shared substructures are certain acyclic hypergraphs (or equivalently, bipartite graphs) the nodes and edges of which are labeled with the sorts and operation symbols of a ...
متن کاملTowards Term Rewriting Systems in Constraint Handling Rules Coming to terms with jungles
Term rewriting systems are a formalism in widespread use, often implemented by means of term graph rewriting. In this work we present preliminary results towards an elegant embedding of term graph rewriting in Constraint Handling Rules with rule priorities (CHR). As term graph rewriting is well-known to be incomplete with respect to term rewriting, we aim for sound jungle evaluation in CHR. Hav...
متن کاملSpecification and programming (by graph transformation)
In this tutorial, some basic ideas will be outlined and exempliied how graph transformation can be employed in speciication and programming. In particular, some of the respective achievements of the COMPUGRAPH project will be pointed out. Graphs are widely used in many areas of Computer Science and beyond to describe complex system states, structured objects, networks and relations among compon...
متن کاملInfinitary Term Graph Rewriting
Term graph rewriting provides a formalism for implementing term rewriting in an efficient manner by avoiding duplication. Infinitary term rewriting has been introduced to study infinite term reduction sequences. Such infinite reductions can be used to reason about lazy evaluation. In this paper, we combine term graph rewriting and infinitary term rewriting thereby addressing both components of ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- ITA
دوره 25 شماره
صفحات -
تاریخ انتشار 1991